
{%include file="header.html" %}  

<div class="break"></div>

<div class="warp manage_page">

{%include file="user/user_manage_menu.html" menu='user_manage' menu_detail='user_pubu' %} 


<div class="manage_body">
<form id="form1">
<div class="manage_body_content ">


	<div class="sec-title">
		
	<h3>管理瀑布->话题（{%$g_show.topic_info.topic%}）</h3>
	</div>

	<div style="margin:10px;height:20px">
	添加了一个话题后，这个话题的内容就由你管理了
		
	</div>


	<div style="margin:10px;">
		<span class="rstrt_span  {%if $g_show.status eq '1'%}current{%/if%}" ><a href="?status=1&id={%$g_show.id%}">展示的瀑布</a></span>
		<span class="rstrt_span {%if $g_show.status eq '0'%}current{%/if%}"><a href="?status=0&id={%$g_show.id%}">删除的瀑布</a></span>
		<a style="display:block;float:right;" href="user_mblog_cron_list.php?id={%$g_show.id%}">填充瀑布内容</a>
	</div>
	
	
	<div style="margin:10px;">
	
	</div>
	
	<div class="w10">
	<table class="table-list">
		<tr>
		<th>用户昵称</th>
		<th>内容</th>
		<th>图片</th>
		<th>时间</th>
		<th>话题</th>
		<th width=10%>操作</th></tr>
		{%section name=count loop=$g_show.list%}
		<tr class="cur" id="list_tr_{%$g_show.list[count].id%}">
		<td>
		{%$g_show.list[count].create_nickname%}
		</td>
		<td>
		{%$g_show.list[count].content%}
		</td>
		<td>
		<a href="{%$g_show.list[count].pic%}" target="_blank"><img src="{%$g_show.list[count].small_pic%}" style="max-width:120px; max-height=200px"></a>
		</td>
		<td>
		{%$g_show.list[count].create_time%}
		</td>
		<td>
		<a href="/mblog/?topic_id={%$g_show.list[count].topic_id%}.html" target="_blank">{%$g_show.list[count].topic%}</a>
		</td>

		<td>
		{%if $g_show.list[count].status eq 1%}
		<a href="javascript:void(0);" onclick=del_one({%$g_show.list[count].id%});>删除</a>
		{%else%}
		<a href="javascript:void(0);" onclick=undel_one({%$g_show.list[count].id%});>恢复</a>
		{%/if%}
		</td>

		</tr>
		{%sectionelse%}
		<tr><td colspan="8">
		目前列表中没有内容
		</td></tr>
		{%/section%}
	</table>
	</div>
	<div style="margin:10px;">
		
		<div style="display:inline;">
			{%$g_show.page_bar%}
		</div>
	</div>


</div>
</form>
<div class="break"></div>




<script src ="/js/common/user_message.js"></script>
<script type="text/javascript" language="javascript">

YOUXIXIU.MAIN.CheckMessage.init();


function del_one(id)
{
	if(!id)
	{
		alert("没选择？！");
		return false;
	}
	$.post('/interface/user/json_mblog_pubu_edit_post.php?type=del&id='+id, '', function(data){
		if (data.error == 1)
		{
			alert(data.errmsg);
		}
		else
		{
			$("#list_tr_"+id).hide();
			//alert("操作成功。");
			//window.location.reload();
		}
	}, 'json');
}

function undel_one(id)
{
	if(!id)
	{
		alert("没选择？！");
		return false;
	}
	$.post('/interface/user/json_mblog_pubu_edit_post.php?type=undel&id='+id, '', function(data){
		if (data.error == 1)
		{
			alert(data.errmsg);
		}
		else
		{
			$("#list_tr_"+id).hide();
			//alert("操作成功。");
			//window.location.reload();
		}
	}, 'json');
}




</script>



</div>
</div>


{%include file="footer.html" %}  
